let mongoose = require('mongoose')
 
mongoose.connect('mongodb+srv://2334231668:xin123666@cluster0.13va5ah.mongodb.net/2410B').then(()=>{
console.log('连接成功！')
}).catch(err=>{
console.log('连接失败！')
console.log(err)
})
 

 
// var model_name = require('../routes/test') 引用并使用
module.exports = mongoose
